package com.eatrip.service.implementation;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eatrip.bean.Privilegi;
import com.eatrip.dao.PrivilegiDAO;
import com.eatrip.service.PrivilegiService;

@Service
public class PrivilegiServiceImple implements PrivilegiService {

	@Autowired
	private PrivilegiDAO privilegiDAO;
	
	@Override
	public Privilegi getPrivilegi(int idPrivilegi) {
		return privilegiDAO.getPrivilegi(idPrivilegi);
	}

	@Override
	public List<Privilegi> getAllPrivilegi() {
		return privilegiDAO.getAllPrivilegi();
	}

	@Override
	public void insertPrivilegi(Privilegi privilegi) {
		privilegiDAO.insertPrivilegi(privilegi);
	}

}
